package com.zxkj.solr.repository;


import com.zxkj.solr.model.SciDocSolrModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.solr.repository.Query;
import org.springframework.data.solr.repository.SolrCrudRepository;

import java.util.UUID;

/**
 * Created by Administrator on 2017/7/18.
 * SciDocSolr仓储
 */
public interface SciDocSolrRepository extends SolrCrudRepository<SciDocSolrModel, UUID> {
    @Query("AUKEYWORD:\"cancer\"")
    Page<SciDocSolrModel> getAll(Pageable pageable);
    @Query("CORPORATION:\"?0\"")
    Page<SciDocSolrModel> getAll(String corp,Pageable pageable);
    SciDocSolrModel getByUt(String ut);
}